APPLET | NN 3 IE 4 DOM n/a | ||||
The APPLET object reflects the APPLET element. | |||||
HTML Equivalent<APPLET> | |||||
Object Model Reference
|
accessKey | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
A single character key that brings focus to an element. The browser
and operating system determine whether the user must press a modifier
key (e.g., | |||
Exampledocument.all.appletID.accessKey = "n" | |||
Value Single alphanumeric (and punctuation) keyboard character. | |||
|
align | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
Defines the alignment of the element within its surrounding
container. See the section "Alignment Constants" at the
beginning of | |||
Exampledocument.all.myApplet.align = "center" | |||
Value Any of the alignment constants: absbottom | absmiddle | baseline | bottom | left | middle | right | texttop | top. | |||
|
altHTML | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
HTML content to be displayed if the object or applet fails to load. This can be a message, static image, or any other HTML that best fits the scenario. There is little indication that setting this property on an existing APPLET object has any visual effect. | |||
Exampledocument.myApplet.altHTML = "<IMG SRC='appletAlt.gif'>" | |||
Value Any quoted string of characters, including HTML tags. | |||
|
code | NN n/a IE 4 DOM n/a | ||
Read-only | |||
The name of the Java applet class file set to the CODE attribute. | |||
Exampleif (document.all.clock.code == "Y2Kcounter.class") { } | |||
Value Case-sensitive applet class filename as a string. | |||
|
codeBase | NN n/a IE 4 DOM n/a | ||
Read-only | |||
Path to the directory holding the class file designated in the CODE attribute. The CODEBASE attribute does not name the class file, just the path. | |||
Exampleif (document.all.clock.codeBase == "classes") { } | |||
Value Case-sensitive pathname, usually relative to the directory storing the current HTML document. | |||
|
dataFld | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
It is unclear how you would use this property with an APPLET object because the dataFld and dataSrc properties (as set in element attributes) are applied to individual PARAM elements. But PARAM elements are not reflected (yet) in the IE object model. | |||
Value Case-sensitive identifier of the data source column. | |||
|
dataSrc | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
It is unclear how you would use this property with an APPLET object because the dataFld and dataSrc properties (as set in element attributes) are applied to individual PARAM elements. But PARAM elements are not reflected (yet) in the IE object model. | |||
Value Case-sensitive identifier of the data source. | |||
|
height, width | NN n/a IE 4 DOM n/a | ||
Read-only | |||
The height and width in pixels of the element as set by the tag attributes. | |||
Examplevar appletHeight = document.myApplet.height | |||
Value Integer. | |||
|
hspace, vspace | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
The pixel measure of horizontal and vertical margins surrounding an applet. The hspace property affects the left and right edges of the element equally; the vspace affects the top and bottom edges of the element equally. These margins are not the same as margins set by style sheets, but they have the same visual effect. To change these property values, you must access the element via its element ID rather than its name. | |||
Exampledocument.all.myApplet.hspace = 5 document.all.myApplet.vspace = 8 | |||
Value Integer of pixel count. | |||
|
name | NN n/a IE 4 DOM n/a | ||
Read-only | |||
The identifier associated with the applet. Use the name when referring to the object in the form document.appletName. | |||
Value Case-sensitive identifier that follows the rules of identifier naming: it may contain no whitespace, cannot begin with a numeral, and should avoid punctuation except for the underscore character. | |||
|
src | NN n/a IE 4 DOM n/a | ||
Read-only | |||
Internet Explorer 4 defines this attribute as the URL for an "associated file." The src property is not a substitute for the code and/or codebase properties. | |||
Value Complete or relative URL as a string. | |||
|
tabIndex | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
A number that indicates the sequence of this element within the tabbing order of all focusable elements in the document. Tabbing order follows a strict set of rules. Elements that have values other than zero assigned to their tabIndex properties are first in line when a user starts tabbing in a page. Focus starts with the element with the lowest tabIndex value and proceeds in order to the highest value, regardless of physical location on the page or in the document. If two elements have the same tabIndex values, the element that comes earlier in the document receives focus first. Next come all elements that either don't support the tabIndex property or have the value set to zero. These elements receive focus in the order in which they appear in the document. A value of -1 removes the element from tabbing order altogether. Note that the Macintosh user interface does not provide for giving focus to elements other than text and password INPUT fields. | |||
Exampledocument.all.myApplet.tabIndex = 6 | |||
Value Integer. | |||
|
blur( ) | NN n/a IE 4 DOM n/a |
Removes focus from the current element and fires an onBlur event (in IE). No other element necessarily receives focus as a result. | |
Returned Value None. | |
Parameters None. |
focus( ) | NN n/a IE 4 DOM n/a |
Gives focus to the current element and fires the onFocus event (in IE). If another element had focus at the time, it receives an onBlur event. | |
Returned Value None. | |
Parameters None. |